::IVShape FAR * GetIP() const { return (::IVShape FAR *) GetUnknown(); }
operator ::IVShape FAR * () { return (::IVShape FAR *) GetUnknown(); }
VW_PUBLIC:
HRESULT DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray, short FAR *lpRet);
HRESULT GetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray);
HRESULT GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray);
HRESULT SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet);
HRESULT SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet);
HRESULT FromConnects(CVisioConnects FAR &rWrap);
HRESULT Layout();
HRESULT BoundingBox(short Flags, double FAR *lpr8Left, double FAR *lpr8Bottom, double FAR *lpr8Right, double FAR *lpr8Top);
private:
IDispatch FAR *GetDispatch(void);
void ReleaseDispatch(void);
IDispatch FAR *m_pDispatch;
};
VW_INLINE IDispatch FAR *CVisioShape_NT40::GetDispatch(void)
{
HRESULT hr= NOERROR;
if (NULL==m_pDispatch && NULL!=GetIP())
{
hr= GetIP()->QueryInterface(IID_IDispatch, (LPVOID FAR *) &m_pDispatch);
VW_INLINE HRESULT CVisioShape_NT40::DropMany(/*VARIANT*/ SAFEARRAY FAR * FAR *ObjectsToInstance, /*double*/ SAFEARRAY FAR * FAR *xyArray, /*short*/ SAFEARRAY FAR * FAR *IDArray, short FAR *lpRet)
{
HRESULT hr= E_FAIL;
IDispatch FAR *pDispatch= GetDispatch();
CHECK_IP(GetIP(), CVisioShape_NT40, DropMany);
if (NULL!=pDispatch)
{
unsigned short wFlags= DISPATCH_METHOD;
DISPPARAMS dispParams;
VARIANT vaResult;
EXCEPINFO excepInfo;
UINT nArgErr= (UINT) -1; // initialize to invalid arg
VW_INLINE HRESULT CVisioShape_NT40::GetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, short Flags, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray)
{
HRESULT hr= E_FAIL;
IDispatch FAR *pDispatch= GetDispatch();
CHECK_IP(GetIP(), CVisioShape_NT40, GetResults);
if (NULL!=pDispatch)
{
unsigned short wFlags= DISPATCH_METHOD;
DISPPARAMS dispParams;
VARIANT vaResult;
EXCEPINFO excepInfo;
UINT nArgErr= (UINT) -1; // initialize to invalid arg
VW_INLINE HRESULT CVisioShape_NT40::SetFormulas(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *formulaArray, short Flags, short FAR *lpRet)
{
HRESULT hr= E_FAIL;
IDispatch FAR *pDispatch= GetDispatch();
CHECK_IP(GetIP(), CVisioShape_NT40, SetFormulas);
if (NULL!=pDispatch)
{
unsigned short wFlags= DISPATCH_METHOD;
DISPPARAMS dispParams;
VARIANT vaResult;
EXCEPINFO excepInfo;
UINT nArgErr= (UINT) -1; // initialize to invalid arg
VW_INLINE HRESULT CVisioShape_NT40::SetResults(/*short*/ SAFEARRAY FAR * FAR *SRCStream, /*VARIANT*/ SAFEARRAY FAR * FAR *UnitsNamesOrCodes, /*VARIANT*/ SAFEARRAY FAR * FAR *resultArray, short Flags, short FAR *lpRet)
{
HRESULT hr= E_FAIL;
IDispatch FAR *pDispatch= GetDispatch();
CHECK_IP(GetIP(), CVisioShape_NT40, SetResults);
if (NULL!=pDispatch)
{
unsigned short wFlags= DISPATCH_METHOD;
DISPPARAMS dispParams;
VARIANT vaResult;
EXCEPINFO excepInfo;
UINT nArgErr= (UINT) -1; // initialize to invalid arg